require.config({
    baseUrl: '',
    waitSeconds: 0,
    //urlArgs: 'ver=1', 版本号,为增量更新做准备
    map: {
        '*': {
            'css': 'lib/js/css',
            'ionic-css': 'lib/css/ionic',
            'ionicons-css': 'lib/css/ionicons',
            'loading-bar-css': 'lib/css/loading-bar',
            'slider-css': 'lib/css/angular-slider',
            'swiper-css': '/css/swiper',
        }
    },
    paths: {
        'app': 'js/app',
        //AMD
        'angularAMD': 'lib/js/angularAMD',
        'ngload': 'lib/js/ngload',

        //angulaar
        'angular': 'lib/js/angular',
        'angular-ui-router': 'lib/js/angular-ui-router',
        'angular-animate': 'lib/js/angular-animate',
        'angular-sanitize': 'lib/js/angular-sanitize',
        'angular-messages': 'lib/js/angular-messages',
        'angular-resource': 'lib/js/angular-resource',


        //localforage
        'angular-localForage': 'lib/js/angular-localForage',
        'localforage': 'lib/js/localforage',

        'loading-bar': 'lib/js/loading-bar',
        'mlab-recorder': 'js/mlab-recorder',
        'mlab-audio': 'js/mlab-audio',
        'wx': 'lib/js/jweixin',
        //slider
        'slider': 'lib/js/angular-slider',
        'swiper': 'js/swiper',

        'qrcode': 'lib/js/qrcode',
        'qrcode_UTF8': 'lib/js/qrcode_UTF8',
        'angular-qrcode': 'lib/js/angular-qrcode',

        'index-css': 'css/index',
        'jquery': 'js/jquery',
        'domReady': 'js/jquery',
        'mlab': 'lib/js/mlab',
        'commonfonts': 'lib/js/commonfonts',
        'cursivefonts': 'lib/js/cursivefonts',
    },

    shim: {

        //angular
        'angular': {
            'exports': 'angular'
        },
        'angularAMD': ['angular'],
        'ngload': ['angularAMD'],
        'angular-resource': ['angular'],
        'angular-ui-router': ['angular'],
        'angular-animate': ['angular'],
        'angular-sanitize': ['angular'],
        'angular-messages': ['angular'],
        'angular-localForage': ['angular', 'localforage'],
        'qrcode_UTF8': ['qrcode'],
        'angular-qrcode': ['angular', 'qrcode_UTF8'],
        //other
        'loading-bar': ['angular'],
        'slider': ['angular', 'css!slider-css'],
        'commonfonts': ['mlab'],
        'cursivefonts': ['mlab']

    },

    deps: ['app']
});
